/**
 * 
 */
package group.anglers.bpmn.core.factories;

import group.anglers.om.core.exceptions.OmException;
import group.anglers.om.core.persistence.Persistence;
import group.anglers.om.core.persistence.impls.JTAPersistence;

import javax.enterprise.inject.Produces;

/**
 * @author an.pham
 * 
 */
public class PersistenceFactory {
	@Produces
	public Persistence getPersistence() throws OmException {
		return new JTAPersistence("java:jboss/datasources/anglers-bpmn");
	}
}
